//
//  KTNoticTVC.m
//  KTLotteryTicket
//
//  Created by CoolKi on 16/3/12.
//  Copyright © 2016年 CoolKi. All rights reserved.
//

#import "KTNoticTVC.h"
#import "KTAwardPushTVC.h"


@interface KTNoticTVC ()

@end

@implementation KTNoticTVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    [self setGroup1];
    
}


- (void)setGroup1{
    
    KTArrowCellModel * model0 = [KTArrowCellModel cellModelByCellTitle:@"开奖推送" DetailTitle:@"" AndIconImageName:@""];
    model0.destanceClss = [KTAwardPushTVC class];
    
    KTArrowCellModel * model1 = [KTArrowCellModel cellModelByCellTitle:@"比分直播推送" DetailTitle:@"" AndIconImageName:@""];
    KTArrowCellModel * model2 = [KTArrowCellModel cellModelByCellTitle:@"中奖动画" DetailTitle:@"" AndIconImageName:@""];
    KTArrowCellModel * model3 = [KTArrowCellModel cellModelByCellTitle:@"购彩提醒" DetailTitle:@"" AndIconImageName:@""];
    
    KTGroupModel * groupModel = [KTGroupModel groupModelWithHeaderTitle:@"区头标题" FooterTitle:@"区脚标题" CellModelArr:@[model0,model1,model2,model3]];
    groupModel.headerStr = @"1,headerStr";
    groupModel.footerStr = @"1footerStr";
    
    [self.groupArr addObject:groupModel];
}

//重写集类方法，实现cellStyle的改变
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    KTBaseCell * cell = [KTBaseCell cellWithTableView:tableView Style:UITableViewCellStyleValue1];
    
    KTGroupModel * model = self.groupArr[indexPath.section];
    KTBaseCellModel * cellModel = model.cellModelArr[indexPath.row];
    cell.cellModel = cellModel;
    
    return cell;
}


@end
